/**
 * $Id: Item.m 29 2008-01-17 07:10:07Z robertsaenz $
 */
#import "Item.h"

@implementation Item

- (id) initWithSelected: (BOOL) _selected andName: (NSString *) _itemName {
	self = [super init];
	selected = _selected;
	deleted = false;
	itemName = _itemName;
	sl = [MobileShoppingListApplication sharedInstance];
	[self setTitle: _itemName];
	return self;
}

- (BOOL) isSelected {
	return selected;
}

- (BOOL) isDeleted {
	return deleted;
}

- (NSString *) getItemName {
	return itemName;
}

- (void) setSelected: (BOOL) _selected {
	selected = _selected;
}

- (void) _willBeDeleted {
	[sl removeShoppingItem: self];
	[super _willBeDeleted];
}

@end
